//
//  FacilityCollectionCell.m
//  MiaoTu
//
//  Created by dllo on 16/9/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FacilityCollectionCell.h"

@interface FacilityCollectionCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picImage;
@property (weak, nonatomic) IBOutlet UILabel *facilityNameLabel;

@end

@implementation FacilityCollectionCell

- (void)setFacilityName:(NSString *)facilityName {
    _facilityName = facilityName;
    _facilityNameLabel.text = _facilityName;
    
    if ([_facilityName isEqualToString:@"24H热水"]) {
        _picImage.image = [UIImage imageNamed:@"shower"];
    } else if ([_facilityName isEqualToString:@"免费WIFI"]) {
        _picImage.image = [UIImage imageNamed:@"wifi"];
    } else if ([_facilityName isEqualToString:@"接机服务"]) {
        _picImage.image = [UIImage imageNamed:@"plane"];
    } else if ([_facilityName isEqualToString:@"叫醒服务"]) {
        _picImage.image = [UIImage imageNamed:@"bell"];
    } else {
        _picImage.image = nil;
    }
    
    
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

@end
